package com.hnkywl.sts.entity.xsgl;

import com.hnkywl.sts.entity.BaseEntity;
import com.hnkywl.sts.entity.base.Sjzdz;
import com.hnkywl.sts.entity.organ.Nbgs;
import com.hnkywl.sts.entity.sys.Gg;
import org.hibernate.annotations.Where;

import javax.persistence.*;
import java.util.List;

/**
 * 库存
 * User: Administrator
 * Date: 13-4-25
 * Time: 上午11:48
 * To change this template use File | Settings | File Templates.
 */
@Entity
@Table(name = "T_BIZ_KC")
@Where(clause = "deleted!='1'")
public class Kc extends BaseEntity{
    @Id
    @SequenceGenerator(name = "seqKc", allocationSize = 1, sequenceName = "SEQ_BIZ_KC")
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "seqKc")
    private Long id;


    /**
     * 报价公司
     */
    @ManyToOne
    @JoinColumn(name="BJGS_ID")
    private Nbgs bjgs;


    /**
     * 规格
     */
    @ManyToOne
    @JoinColumn(name="GG_ID")
    private Gg gg;

    /**
     * 产地
     */
    @ManyToOne
    @JoinColumn(name="CD_SJZDZ_ID")
    private Sjzdz cd;


    /**
     * 库存数量
     */
    private Double kcsl;

    /**
     * 是否从合同导入
     */
    private int fromHt;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Nbgs getBjgs() {
        return bjgs;
    }

    public void setBjgs(Nbgs bjgs) {
        this.bjgs = bjgs;
    }

    public Gg getGg() {
        return gg;
    }

    public void setGg(Gg gg) {
        this.gg = gg;
    }

    public Sjzdz getCd() {
        return cd;
    }

    public void setCd(Sjzdz cd) {
        this.cd = cd;
    }

    public Double getKcsl() {
        return kcsl;
    }

    public void setKcsl(Double kcsl) {
        this.kcsl = kcsl;
    }

    public int getFromHt() {
        return fromHt;
    }

    public void setFromHt(int fromHt) {
        this.fromHt = fromHt;
    }
}
